package org.wkg.lesson08;

public class Demo_802 {

    public static void main(String[] args) throws InterruptedException {
        MyTimer_All timer = new MyTimer_All();


        timer.schedule(() -> {
            System.out.println("该起床了");
        }, 1000);

        timer.schedule(() -> {
            System.out.println("任务2");
        }, 2000);

        timer.schedule(() -> {
            System.out.println("任务3");
        }, 3000);
    }
}
